<?php
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    $MaLoaiSanPhamCap1 = $_POST['MaLoaiSanPhamCap1'];
    
    $loaisanphamc1 = new loaisanphamc1bs();
    $loaisanphamc1->MaLoaiSanPhamCap1 = $MaLoaiSanPhamCap1;
    
    if($loaisanphamc1->delete())
        echo "yes";
    else
        echo "no";
?>